home *** CD-ROM | disk | FTP | other *** search
- Path: news.cencom.net!ns!tanp
- From: tanp@ns (Bill Wendling)
- Newsgroups: comp.lang.c
- Subject: Re: "Initializer must be a constant expression"...?
- Date: 4 Feb 1996 06:15:09 GMT
- Organization: Cen-Com Internet
- Message-ID: <4f1itd$oio@news.cencom.net>
- References: <311280AA.15FB7483@tulsa.lgc.com>
- NNTP-Posting-Host: ns.cencom.net
- X-Newsreader: TIN [version 1.2 PL2]
-
- Glenn Carr inexplicably wrote:
-
- } in the following...
-
- } typedef struct {
- } char **var;
- } char *descr;
- } } cfgStrSpec_t;
-
- } char *pszDepCodeSetKey = NULL;
- } char *pszDepComboBox = NULL;
- } char *pszShowAllIfEmpty = NULL;
- } cfgStrSpec_t pCfgStr[] =
- } {
- } 244: {&pszDepCodeSetKey, "Dependent code_set_key"},
- } 245: {&pszDepComboBox, "Dependent widget (combobox)"},
- } 246: {&pszShowAllIfEmpty, "Boolean (nonzero or 0)"},
- } {NULL, NULL},
- } };
-
- } Is that not valid, or ANSI C?
-
- It seems that xlc doesn't like the psz's being used as initializers.
- I don't know why, perhaps you should go back to gcc? :)
-
- --
- Bill Wendling | "Pinky, are you thinking what I'm thinking?"
- tanp@ns.cencom.net | "I think so, Brain, but burlap chafes me so."
- "Boom Shanka" | Finger me for my Geek Code...NOW!
-